package com.cn.wanxi.springsecurity;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.web.FilterChainProxy;
import org.springframework.security.web.SecurityFilterChain;

import java.util.List;

@SpringBootApplication
@MapperScan("com.cn.wanxi.springsecurity.mapper")
@ServletComponentScan(value = {"com.cn.wanxi.springsecurity.filter"})
public class SpringsecurityApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext app = SpringApplication.run(SpringsecurityApplication.class, args);
        List<SecurityFilterChain> filterChains = app.getBean(FilterChainProxy.class).getFilterChains();
        System.out.println("123");
    }

}
